<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	<f:view id="loginPage">
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
			<link rel="stylesheet" type="text/css" href="special_pages.css" />
			<title>#{msg.login_title}</title>
		</head>
		<body>
			<h1>#{msg.login_heading}</h1>
			<div id="login_container">
				<h:form id="login_form">				
					<h:messages globalOnly="true" layout=" list" infoClass="globalInfoClass" errorClass="globalErrorClass"/>
					
					<h:panelGrid id="login_form_grid" columns="2">
						<h:outputLabel value="#{msg.login_username}" for="username" />
						<h:inputText id="username" value="#{userBean.userName}"/>
						<h:outputLabel value="#{msg.login_password}" for="password" />
						<h:inputSecret id="password" value="#{userBean.password}" redisplay="false"/>
						<h:outputLabel value=" " for="login_button"/>
						<h:commandButton id="login_button" value="#{msg.login_button}" action="#{userBean.login}"/>
					</h:panelGrid>
				</h:form>
			</div>
		</body>
	</f:view>
</html>